<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      Freeglut-3.2.1
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;25.&nbsp;X Libraries
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="fltk.html" title="FLTK-1.3.5">Prev</a>
          <p>
            FLTK-1.3.5
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="gdk-pixbuf.html" title=
          "gdk-pixbuf-2.40.0">Next</a>
          <p>
            gdk-pixbuf-2.40.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="lib.html" title=
          "Chapter&nbsp;25.&nbsp;X Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="freeglut" name="freeglut"></a>Freeglut-3.2.1
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to Freeglut
        </h2>
        <p>
          <span class="application">Freeglut</span> is intended to be a 100%
          compatible, completely opensourced clone of the GLUT library. GLUT
          is a window system independent toolkit for writing OpenGL programs,
          implementing a simple windowing API, which makes learning about and
          exploring OpenGL programming very easy.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Download (HTTP): <a class="ulink" href=
                "https://downloads.sourceforge.net/freeglut/freeglut-3.2.1.tar.gz">
                https://downloads.sourceforge.net/freeglut/freeglut-3.2.1.tar.gz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Download MD5 sum: cd5c670c1086358598a6d4a9d166949d
              </p>
            </li>
            <li class="listitem">
              <p>
                Download size: 432 KB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 4.6 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: less than 0.1 SBU
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Freeglut Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href="../general/cmake.html" title=
          "CMake-3.16.4">CMake-3.16.4</a> and <a class="xref" href=
          "mesa.html" title="Mesa-19.3.4">Mesa-19.3.4</a>
        </p>
        <h4>
          Recommended
        </h4>
        <p class="recommended">
          <a class="xref" href="glu.html" title="GLU-9.0.1">GLU-9.0.1</a>
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/freeglut">http://wiki.linuxfromscratch.org/blfs/wiki/freeglut</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of Freeglut
        </h2>
        <p>
          Install <span class="application">Freeglut</span> by running the
          following commands:
        </p>
        <pre class="userinput">
<kbd class="command">mkdir build &amp;&amp;
cd    build &amp;&amp;

cmake -DCMAKE_INSTALL_PREFIX=/usr       \
      -DCMAKE_BUILD_TYPE=Release        \
      -DFREEGLUT_BUILD_DEMOS=OFF        \
      -DFREEGLUT_BUILD_STATIC_LIBS=OFF  \
      .. &amp;&amp;

make</kbd>
</pre>
        <p>
          This package does not come with a test suite.
        </p>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make install</kbd>
</pre>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <em class="parameter"><code>-DFREEGLUT_BUILD_DEMOS=OFF</code></em>:
          Disable building optional demo programs. Note that if you choose to
          build them, their installation must be done manually. The demo
          programs are limited and installation is not recommended.
        </p>
        <p>
          <em class=
          "parameter"><code>-DFREEGLUT_BUILD_STATIC_LIBS=OFF</code></em>: Do
          not build the static library.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">None</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Library:</strong>
              <span class="segbody">libglut.so</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directories:</strong>
              <span class="segbody">None</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="libglut" name="libglut"></a><span class=
                    "term"><code class="filename">libglut.so</code></span>
                  </p>
                </td>
                <td>
                  <p>
                    contains functions that implement the OpenGL Utility
                    Toolkit.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-16 15:15:05 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="fltk.html" title="FLTK-1.3.5">Prev</a>
          <p>
            FLTK-1.3.5
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="gdk-pixbuf.html" title=
          "gdk-pixbuf-2.40.0">Next</a>
          <p>
            gdk-pixbuf-2.40.0
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="lib.html" title=
          "Chapter&nbsp;25.&nbsp;X Libraries">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
